'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
    const { router, controller } = app;
    router.get('/', controller.home.index);
    router.get('/api/list/:limit',controller.home.list);
    router.post('/api/registry',controller.user.user.registry);
    //restful风格 定义是一组CRUD接口 
    router.resources('blog', '/api/blog', controller.blog);
};
